package com.wtwd.campus.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.entity.Information;
import com.wtwd.campus.entity.InformationVO;
import com.wtwd.campus.entity.Notification;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface InformationMapper {
    IPage<Information> getInformationListByCondition(@Param("data") InformationVO data, @Param("page") Page<Information> page);

    int addInformation(@Param("data") Information data);

    Information getInformationById(@Param("id") Integer id);

    Long getBiggestTimeBySchoolId(@Param("schoolId") Integer schoolId);

    List<Information> getInformationByTimeAndSchoolId(@Param("schoolId") Integer schoolId, @Param("start") Long start, @Param("end")  Long end, @Param("min") Integer min);
}
